class Exception extends Error {
  constructor(code = 500, message = '系统错误', error = {}){
    super(message)
    this.code = code
    this.error = error
  }
}

module.exports = Exception;